<template>
    <div>
<router-view></router-view>

<van-tabbar route>
  <van-tabbar-item replace to="/home/sy" icon="home-o" @click="dj">首页</van-tabbar-item>
  <van-tabbar-item replace to="/home/classify" icon="apps-o">分类</van-tabbar-item>
  <van-tabbar-item replace to="/home/cart" icon="cart-o">购物车</van-tabbar-item>
  <van-tabbar-item replace to="/home/my" icon="user-o">我的</van-tabbar-item>
</van-tabbar>

    </div>
</template>

<script setup>
const dj=()=>{
  alert('新用户福利')
}
</script>

<style lang="scss" scoped>

</style>